package cn.sccl.common.scaffold;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 杨浩宇 on 2016-02-20.
 */
public class TableInfo {
    private String modelName;//模型名称

    private String basePackage;//基础包路径

    private String tableName;//表名

    private String tableComments;//表的注释信息

    private String primaryKey;//主键列的名称

    private List<ColumnInfo> columnInfos;//列信息

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getBasePackage() {
        return basePackage;
    }

    public void setBasePackage(String basePackage) {
        this.basePackage = basePackage;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTableComments() {
        return tableComments;
    }

    public void setTableComments(String tableComments) {
        this.tableComments = tableComments;
    }

    public List<ColumnInfo> getColumnInfos() {
        if (columnInfos == null) {
            columnInfos = new ArrayList<ColumnInfo>();
        }
        return columnInfos;
    }

    public void setColumnInfos(List<ColumnInfo> columnInfos) {
        this.columnInfos = columnInfos;
    }

    public String getPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(String primaryKey) {
        this.primaryKey = primaryKey;
    }
}
